home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / boot / bootctrl.lha / BootControl / Includes / BootResource.h next >
C/C++ Source or Header  |  1995-04-20  |  2KB  |  72 lines

  1.  
  2. /* Do not rely on the size of this structure.
  3.    It may grow in the future! */
  4.    
  5. struct BootResource
  6.     {
  7.     struct Library br_Lib;
  8.  
  9.     /* This is a semaphore protecting against multitasking attacs
  10.       of the values below.
  11.       You MUST do an ObtainSemaphore() for writing or an
  12.       ObtainSemaphoreShared() for reading!!!!
  13.         Do an ReleaseSemaphore() after you are done.
  14.     */
  15.     struct SignalSemaphore br_Semaphore;
  16.     ULONG br_Private1;
  17.     ULONG br_Private2;
  18.     ULONG br_Mode; /* See mode flags below */
  19.     ULONG br_Reserved; /* Don't touch! (yet) */
  20.     ULONG br_ChipRed; /*  Reduce ChipMem (amount in bytes) */
  21.     ULONG br_FastRed; /*  Reduce FastMem (amount in bytes) */
  22.     UBYTE br_BootName[32]; /* BootDev, BSTR with NULL termination */
  23.     UBYTE br_RemoveNames[256]; /* Chain of BSTR, terminated with NULL */
  24.  
  25.     /* Bitfield, defining which of the following monitor specs are valid */
  26.  
  27.     UWORD br_MonitorFlags;
  28.  
  29.     /* Specs for the embedded DblNTSC.monitor */
  30.     UWORD br_HBSTRT;
  31.     UWORD br_HBSTOP;
  32.     UWORD br_VBSTRT;
  33.     UWORD br_VBSTOP;
  34.     UWORD br_MINCOL;
  35.     UWORD br_MINROW;
  36.     UWORD br_TOTROWS;
  37.     UWORD br_TOTCLKS;
  38.     UWORD br_BEAMCON0;
  39.     };
  40.  
  41. /* Flag definitions for br_MonitorFlags, undefined bits are reserved!
  42.    Bit set means that the corresponding value is valid */
  43.  
  44. #define BRMF_HBSTRT (1L<<0)
  45. #define BRMF_HBSTOP (1L<<1)
  46. #define BRMF_VBSTRT (1L<<2)
  47. #define BRMF_VBSTOP (1L<<3)
  48. #define BRMF_MINCOL (1L<<4)
  49. #define BRMF_MINROW (1L<<5)
  50. #define BRMF_TOTROWS (1L<<6)
  51. #define BRMF_TOTCLKS (1L<<7)
  52. #define BRMF_BEAMCON0 (1L<<8)
  53.  
  54.  
  55. /* Flag definitions for br_Mode, undefined bits are reserved */
  56.  
  57. /* GFX Modes, DEFAULT = all bits unset */
  58. #define BRF_OLD (1L<<0)
  59. #define BRF_ECS (1L<<1)
  60. #define BRF_BEST (1L<<2)
  61.  
  62. #define BRF_PAL (1L<<3) /* PAL set (ignored if VGA set) */
  63. #define BRF_NOFAST (1L<<4) /* NOFASTMEM set */
  64. #define BRF_NOCACHE (1L<<5) /* CACHE OFF set */
  65. #define BRF_FORCECACHE (1L<<6) /* FORCECACHE set (ignored if CACHE OFF set) */
  66. #define BRF_PATCHALERT (1L<<7) /* Patch DisplayAlert() */
  67. #define BRF_VGA (1L<<8) /* VGA set */
  68. #define BRF_VGAONLY (1L<<9) /* VGAONLY set */
  69. #define BRF_LOADVGA (1L<<10) /* Always load VGA monitor */
  70. #define BRF_BOOTMENU (1L<<11) /* PRIVATE !!! */
  71.  
  72.